package com.vacation.vacationdemo.service;

import com.github.pagehelper.PageInfo;
import com.vacation.vacationdemo.dto.VacationDto;
import com.vacation.vacationdemo.vo.VacationVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author 杨光
 * @date 2022年03月09日 11:01
 */
public interface VacationService {
    PageInfo<VacationVo> selectVacation(Integer pageNum, Integer pageSize);

    void cancelApply(Integer vacationId);

    Boolean addVacation(VacationDto vacationDto);

    PageInfo<VacationVo> dynamicSearchVacation(Integer pageNum, Integer pageSize, Integer deptId, String empName);

    String exportVacation(Integer deptId, String empName,String downloadFilePath);

    void doBatchApprove(List<Integer> vacationIds);

    void doReject(List<Integer> vacationIds);


    void upload(MultipartFile file);

}
